<?php get_header(); ?>

<?php if (have_posts()) : ?>
	
	<ul id="posts">
		<li class="post">
			<div class="post_content">
				<h2 title="title">搜索 &raquo; <?php the_search_query(); ?></h2>
			</div>
		</li>
	</ul>
	<?php /*start loop*/ while (have_posts()) : the_post(); ?>
	<ul id="posts">
	 	<li class="post">
	 		<div class="post_content" id="post-<?php the_ID(); ?>">
	 			<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
	 			<div class="txt">
	 				<?php the_excerpt() ?>
	 			</div>
	 		</div>
	 	</li>
	</ul>

<?php
	endwhile;
	else :
		echo walleve_404_message(); 
	endif;
?>

	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>

<?php get_footer(); ?>